package com.size.mall.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.size.mall.mallapi.entity.Catalog3;
import com.size.mall.mallapi.service.Catalog3Service;
import com.size.mall.mapper.Catalog3Mapper;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author yin
 * @since 2019-10-24
 */
@Service
public class Catalog3ServiceImpl extends ServiceImpl<Catalog3Mapper, Catalog3> implements Catalog3Service {


    @Override
    public List<Catalog3> getCatalog3(String catalog2Id) {
        Wrapper<Catalog3> wp = new QueryWrapper<>();
        ((QueryWrapper<Catalog3>) wp).eq("Catalog2_id", catalog2Id);
        return this.list(wp);
    }
}
